import http from '@/service/http'
import type * as T from '@/types/api/index'
const roleUserApi: T.IRoleUserApi = {
  list(data) {
    return http.get('/member', data)
  },
  add(data) {
    return http.post('/member', data)
  },
  edit(data) {
    return http.post('/member', data)
  },
  updPass(data) {
    return http.post('/member/updatePass', data)
  },
  dels(data) {
    return http.post('/member/deleteById', data)
  }
}

export default roleUserApi
